package org.ihelpuoo.parser.segment;

import java.util.Iterator;

import org.ihelpuoo.parser.TextParser;
import org.ihelpuoo.parser.TextRender;

public interface Segment extends TextParser, TextRender
{
	public Segment set(String key, boolean v);

	public Segment set(String key, int v);

	public Segment set(String key, double v);

	public Segment set(String key, float v);

	public Segment set(String key, long v);

	public Segment set(String key, byte v);

	public Segment set(String key, short v);

	public Segment set(String key, Object v);

	public Segment add(String key, Object v);

	public void clearAll();

	public Segment duplicate();

	public boolean isEquals(Segment seg);

	public boolean contains(String key);

	/**
	 * @return the number of PlugPoint
	 */
	public int size();

	/**
	 * @return a iterator for the PlugPoint key
	 */
	public Iterator<String> iterator();

	public String getOriginContent();

	public CharSequence render();

}
